//发私信
function connected(id){
	createXMLRequest();                       
	var message=document.getElementById("message"+id).value;
	var messageurl="/users/message/?message="+message+"&to="+id;
	xmlHttp.open('get',messageurl);
	xmlHttp.onreadystatechange=function () {
		if(xmlHttp.readyState==4 && xmlHttp.status==200){
			$("#myModal"+id).modal('hide');
			//result=document.getElementById('messageresult'+id);
			//result.innerHTML=xmlHttp.responseText;
			//result.style.color='orange';
			
		};
	};
	xmlHttp.send(); 
}

